package 最大子序和;

import java.util.Arrays;

/**
 * @author: AirMan
 * @date: 2025/4/22 11:10
 * @description:
 */
public class Test {
    public static void main(String[] args) {
        Solution2 solution = new Solution2();

        int[] nums = new int[]{-2,1,-3,4,-1,2,1,-5,4};

        int result = solution.maxSubArray(nums);

        System.out.println("result = " + result);
    }
}
